package com.itheima.streamdemo.mystream;

import java.util.ArrayList;
import java.util.Collections;

public class MyStream3 {
    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<>();
        Collections.addAll(list,"张三丰","张无忌","张翠山","王林","张良","谢广坤");
        list.stream().filter(s -> s.startsWith("张")).forEach(s -> System.out.println());
    }
}
